Return the sequencing collection information in the manifest. This is only valid in SCORM 2004 content, so in SCORM 1.2 content, this collection will always be empty. The key is the <sequencing>/ID and the value is a SequencingNodeReader.
Parent Type: ManifestReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public IDictionary<string,SequencingNodeReader> SequencingCollection { get; } |
| Exception type | Condition |
| InvalidPackageException | If PackageType is |
This collection only returns <sequencing> nodes from the <imsss:sequencingCollection>. These all contain ID attributes that are referenced by the IDRef attribute of <imsss:sequencing> nodes inside an <item> node.
Because the nodes are parsed as they are accessed, and not before, errors or warnings can occur when the collection's Count property or MoveNext method is accessed. E.g. if a <sequencing> node contains no valid ID attribute, in ManifestReaderSettings.FixScormRequirementViolations=true a warning is put into the log and that <sequencing> node is skipped. In ManifestReaderSettings.FixScormRequirementViolations=false, an error is put into the log and an InvalidPackageException is thrown.
<imsss:sequencingCollection> is only allowed on Content Aggregation packages, and not on Resources packages. If PackageType is PackageType.Resource and there is a <imsss:sequencingCollection> node in the manifest, then if ManifestReaderSettings.FixScormRequirementViolations=true is set, the SequencingCollection is returned anyway. However, if ManifestReaderSettings.FixScormRequirementViolations=false is set, an exception is thrown.
Loop through sequencing nodes in the sequencingCollection.
| C# |
foreach(SequencingNodeReader sequencing in manifest.SequencingCollection.Values)
{
// use the SequencingNodeReader
}
|